package com.msameer.gwttutor.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.Widget;

public class Shell extends Composite implements AcceptsOneWidget {

	private static ShellUiBinder uiBinder = GWT.create(ShellUiBinder.class);
	@UiField SimplePanel pContainer;
	//private ClientFactory clientFactory;

	interface ShellUiBinder extends UiBinder<Widget, Shell> {
	}
	
	public Shell(ClientFactory clientFactory) {
		initWidget(uiBinder.createAndBindUi(this));
		//this.clientFactory = clientFactory;
	}

	@Override
	public void setWidget(IsWidget w) {
		this.pContainer.setWidget(w);
	}
}
